package mock

import (
	"context"
	v1 "jmicro/app/user/srv/internal/dataSearch/v1"
	"jmicro/app/user/srv/internal/domain/do"
	metav1 "jmicro/pkg/common/meta/v1"
)

type users struct {
	//users []*dv1.UserDO   模拟数据库   （进行insert之后测试）
}

var _ v1.UserSearchStore = &users{}

func NewUsersSearch() *users {
	return &users{}
}
func (u *users) List(ctx context.Context, opts metav1.ListMeta) (*do.UserDOList, error) {
	//实现es模拟查询
	return &do.UserDOList{
		TotalCount: 1,
		Items: []*do.UserDO{
			{"jzin"},
		},
	}, nil
}
